package com.modular.log;

import ch.qos.logback.core.PropertyDefinerBase;
import cn.hutool.core.net.NetUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogBackConfig extends PropertyDefinerBase {
    private static Logger logger = LoggerFactory.getLogger(LogBackConfig.class);
    public LogBackConfig() {
    }
    @Override
    public String getPropertyValue() {
        try {
            return NetUtil.getLocalHostName();
        } catch (Exception var2) {
            logger.warn("未找到主机名称: {}", var2.getMessage(), var2);
            return null;
        }
    }
}
